package com.neuedu.security.mapper;

import com.neuedu.security.model.Role;
import com.neuedu.security.model.User;
import com.neuedu.security.model.UserModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    User searchUserByUsername(String username);

    List<Role> searchRolesByUserId(int id);

    List<UserModel> getUsers(@Param("nameKeyWords") String nameKeyWords);

    int delUser(int id);

    int updateStatus(UserModel user);
}
